package com.lotusfall.api;

import com.lotusfall.pojo.Permission;
import com.lotusfall.service.PermissionService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@DubboService(version = "1.0")
public class ApiPermissionServiceImpl implements ApiPermissionService{
    @Autowired
    private PermissionService permissionService;

    @Override
    public List<Permission> listPermissionByUserid(Long userid) {
        return this.permissionService.listPermissionByUserid(userid);
    }
}
